package org.example.domain;

import lombok.Getter;
import lombok.Setter;

/**
 * @author 李新雨的项目86176
 * @version 1.0
 * @date 2024-11-10 20:04
 */
@Setter
@Getter
public class MyDataSource {
    private String url;
    private String username;
    private String password;
    private int maxLinkSum;
    public MyDataSource() {

    }
    public MyDataSource(String url, String username, String password) {
        this.url = url;
        this.username = username;
        this.password = password;
    }
    public void init() {
        maxLinkSum=99;
        System.out.println("初始化");
    }


    public void close() {
        System.out.println("销毁");
    }
    public void getConn(){//// TODO: 2024/11/10
        System.out.println("最大连接数量："+maxLinkSum);
        System.out.println("获取连接");
    }
}
